package com.halflife.parameter.template;

import com.fasterxml.jackson.annotation.JsonAlias;
import com.fasterxml.jackson.annotation.JsonFilter;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.halflife.framework.generator.annotation.QueryAnn;
import com.halflife.framework.generator.build.SimpleBuilder;
import org.junit.jupiter.api.Test;

import java.util.List;
@QueryAnn(title = "ReturnJson",mainTitle = "ReturnJson",table = "t_parameter_returnjson")
public class ReturnJson {
    @Test
    public void generate0()throws Exception{
        SimpleBuilder builder = new SimpleBuilder();
        builder.buildAll(this.getClass());
    }
    private Integer id;
    @QueryAnn(persist = false)
    private List<CompanyJson> companies;
    @JsonProperty("has-more")
    @QueryAnn("hasMore")
    private Boolean hasMore;
    @QueryAnn("offset")
    private Long offset;
    @QueryAnn("count")
    private Integer  count;
    public void init(){

    }

    public List<CompanyJson> getCompanies() {
        return companies;
    }

    public void setCompanies(List<CompanyJson> companies) {
        this.companies = companies;
    }

    public Boolean getHasMore() {
        return hasMore;
    }

    public void setHasMore(Boolean hasMore) {
        this.hasMore = hasMore;
    }

    public Long getOffset() {
        return offset;
    }

    public void setOffset(Long offset) {
        this.offset = offset;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }
}
